package com.lujieni.springboothutool;

import lombok.Getter;

import java.util.ArrayList;
import java.util.List;

public enum FilterConditionFieldEnum{

    NAME("name");

    @Getter
    private final String fieldName;

    FilterConditionFieldEnum(String fieldName) {
        this.fieldName = fieldName;
    }

    public static List<String> getAllField() {
       List<String> result = new ArrayList<>();
        for (FilterConditionFieldEnum temp : FilterConditionFieldEnum.values()) {
            String fieldName = temp.fieldName;
            result.add(fieldName);
        }
        return result;
    }
}
